package com.edu.framework.websocket.handler;

import com.edu.framework.websocket.message.base.Message;
import org.springframework.web.socket.WebSocketSession;

import java.io.IOException;

public interface IHandler<T extends Message> {

    void execute(WebSocketSession webSocketSession, T message) throws IOException;

    String getType();
}
